/* SVN FILE: $Id: xml.js 11 2008-06-22 17:15:42Z rafaelbandeira3 $ */
/**
* Application : The Javascript MVC Framework
*
* @package application.core
* @subpackage cookie
* @author 			$Author: rafaelbandeira3 $
* @copyright 		(c) Rafael Bandeira, Marcelo Condotta, Henrique Condotta. All Rights Reserved.
* @version 			$Revision: 11 $
* @lastrevision 	$Date: 2008-06-22 17:15:42 +0000 (Sun, 22 Jun 2008) $
* @modifiedby 		$LastChangedBy: rafaelbandeira3 $
* @lastmodified 	$LastChangedDate: 2008-06-22 17:15:42 +0000 (Sun, 22 Jun 2008) $
* @license 			The MIT License [http://www.opensource.org/licenses/mit-license.php]
* @filesource 		$URL: http://jsmvcapplication.googlecode.com/svn/trunk/application/src/core/xml.js $
*/
App.XML = 
{
	initialize : function()
	{
		this.__xml = new XML.doc();
	},
	parse : function(xmlString)
	{
		if(!Prototype.Browser.IE)
		{
			parser = new DOMParser();
			this.__xml = parser.parseFromString(xmlString,'text/xml');
		}
		else
		{
			this.__xml.loadXML(xmlString);
		}
		return this;
	}
}
var XML = new Class.create(App.XML);
XML.doc = function()
{
	var xmlDoc;
	if(window.ActiveXObject)
	{
		xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
	}
	else if(document.implementation.createDocument)
	{
		xmlDoc = document.implementation.createDocument("","",null);
	}
	xmlDoc.async = 'false';
	return xmlDoc;
}